package com.liao.dao;

import com.liao.bean.Code;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CodeDao {
    /**
     * 根据手机号查询验证码
     * @param phone
     * @return
     */
    Code selectCodeByPhoneNum(String phone) throws Exception;

    /**
     * 添加验证码
     * @param inputCode
     * @throws Exception
     */
    void insertCode(Code inputCode) throws Exception;

    /**
     * 更新验证码
     * @param inputCode
     * @throws Exception
     */
    void updateCode(Code inputCode) throws Exception;
}
